﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BE1 RID: 3041
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyTakeRaffleTicketRewardScRsp : IMessage<MonopolyTakeRaffleTicketRewardScRsp>, IMessage, IEquatable<MonopolyTakeRaffleTicketRewardScRsp>, IDeepCloneable<MonopolyTakeRaffleTicketRewardScRsp>, IBufferMessage
	{
		// Token: 0x17002647 RID: 9799
		// (get) Token: 0x060087FA RID: 34810 RVA: 0x00168FCF File Offset: 0x001671CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyTakeRaffleTicketRewardScRsp> Parser
		{
			get
			{
				return MonopolyTakeRaffleTicketRewardScRsp._parser;
			}
		}

		// Token: 0x17002648 RID: 9800
		// (get) Token: 0x060087FB RID: 34811 RVA: 0x00168FD6 File Offset: 0x001671D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyTakeRaffleTicketRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002649 RID: 9801
		// (get) Token: 0x060087FC RID: 34812 RVA: 0x00168FE8 File Offset: 0x001671E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyTakeRaffleTicketRewardScRsp.Descriptor;
			}
		}

		// Token: 0x060087FD RID: 34813 RVA: 0x00168FEF File Offset: 0x001671EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakeRaffleTicketRewardScRsp()
		{
		}

		// Token: 0x060087FE RID: 34814 RVA: 0x00168FF8 File Offset: 0x001671F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakeRaffleTicketRewardScRsp(MonopolyTakeRaffleTicketRewardScRsp other) : this()
		{
			this.rewardList_ = ((other.rewardList_ != null) ? other.rewardList_.Clone() : null);
			this.poolId_ = other.poolId_;
			this.retcode_ = other.retcode_;
			this.aBJCHBJJMIO_ = other.aBJCHBJJMIO_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060087FF RID: 34815 RVA: 0x0016905C File Offset: 0x0016725C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakeRaffleTicketRewardScRsp Clone()
		{
			return new MonopolyTakeRaffleTicketRewardScRsp(this);
		}

		// Token: 0x1700264A RID: 9802
		// (get) Token: 0x06008800 RID: 34816 RVA: 0x00169064 File Offset: 0x00167264
		// (set) Token: 0x06008801 RID: 34817 RVA: 0x0016906C File Offset: 0x0016726C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList RewardList
		{
			get
			{
				return this.rewardList_;
			}
			set
			{
				this.rewardList_ = value;
			}
		}

		// Token: 0x1700264B RID: 9803
		// (get) Token: 0x06008802 RID: 34818 RVA: 0x00169075 File Offset: 0x00167275
		// (set) Token: 0x06008803 RID: 34819 RVA: 0x0016907D File Offset: 0x0016727D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PoolId
		{
			get
			{
				return this.poolId_;
			}
			set
			{
				this.poolId_ = value;
			}
		}

		// Token: 0x1700264C RID: 9804
		// (get) Token: 0x06008804 RID: 34820 RVA: 0x00169086 File Offset: 0x00167286
		// (set) Token: 0x06008805 RID: 34821 RVA: 0x0016908E File Offset: 0x0016728E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700264D RID: 9805
		// (get) Token: 0x06008806 RID: 34822 RVA: 0x00169097 File Offset: 0x00167297
		// (set) Token: 0x06008807 RID: 34823 RVA: 0x0016909F File Offset: 0x0016729F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ABJCHBJJMIO
		{
			get
			{
				return this.aBJCHBJJMIO_;
			}
			set
			{
				this.aBJCHBJJMIO_ = value;
			}
		}

		// Token: 0x06008808 RID: 34824 RVA: 0x001690A8 File Offset: 0x001672A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyTakeRaffleTicketRewardScRsp);
		}

		// Token: 0x06008809 RID: 34825 RVA: 0x001690B8 File Offset: 0x001672B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyTakeRaffleTicketRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RewardList, other.RewardList) && this.PoolId == other.PoolId && this.Retcode == other.Retcode && this.ABJCHBJJMIO == other.ABJCHBJJMIO && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600880A RID: 34826 RVA: 0x00169128 File Offset: 0x00167328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rewardList_ != null)
			{
				num ^= this.RewardList.GetHashCode();
			}
			if (this.PoolId != 0U)
			{
				num ^= this.PoolId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ABJCHBJJMIO != 0U)
			{
				num ^= this.ABJCHBJJMIO.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600880B RID: 34827 RVA: 0x001691AF File Offset: 0x001673AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600880C RID: 34828 RVA: 0x001691B7 File Offset: 0x001673B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600880D RID: 34829 RVA: 0x001691C0 File Offset: 0x001673C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rewardList_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.RewardList);
			}
			if (this.ABJCHBJJMIO != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ABJCHBJJMIO);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.PoolId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.PoolId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600880E RID: 34830 RVA: 0x00169254 File Offset: 0x00167454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rewardList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RewardList);
			}
			if (this.PoolId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PoolId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ABJCHBJJMIO != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ABJCHBJJMIO);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600880F RID: 34831 RVA: 0x001692DC File Offset: 0x001674DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyTakeRaffleTicketRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rewardList_ != null)
			{
				if (this.rewardList_ == null)
				{
					this.RewardList = new ItemList();
				}
				this.RewardList.MergeFrom(other.RewardList);
			}
			if (other.PoolId != 0U)
			{
				this.PoolId = other.PoolId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ABJCHBJJMIO != 0U)
			{
				this.ABJCHBJJMIO = other.ABJCHBJJMIO;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008810 RID: 34832 RVA: 0x0016936C File Offset: 0x0016756C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008811 RID: 34833 RVA: 0x00169378 File Offset: 0x00167578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 10U)
					{
						if (this.rewardList_ == null)
						{
							this.RewardList = new ItemList();
						}
						input.ReadMessage(this.RewardList);
						continue;
					}
					if (num == 72U)
					{
						this.ABJCHBJJMIO = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.PoolId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040033B9 RID: 13241
		private static readonly MessageParser<MonopolyTakeRaffleTicketRewardScRsp> _parser = new MessageParser<MonopolyTakeRaffleTicketRewardScRsp>(() => new MonopolyTakeRaffleTicketRewardScRsp());

		// Token: 0x040033BA RID: 13242
		private UnknownFieldSet _unknownFields;

		// Token: 0x040033BB RID: 13243
		public const int RewardListFieldNumber = 1;

		// Token: 0x040033BC RID: 13244
		private ItemList rewardList_;

		// Token: 0x040033BD RID: 13245
		public const int PoolIdFieldNumber = 15;

		// Token: 0x040033BE RID: 13246
		private uint poolId_;

		// Token: 0x040033BF RID: 13247
		public const int RetcodeFieldNumber = 12;

		// Token: 0x040033C0 RID: 13248
		private uint retcode_;

		// Token: 0x040033C1 RID: 13249
		public const int ABJCHBJJMIOFieldNumber = 9;

		// Token: 0x040033C2 RID: 13250
		private uint aBJCHBJJMIO_;
	}
}
